/*
 * mibItem.h
 *
 *  Created on: 2011-7-6
 *      Author: fufan
 */

#ifndef MIBITEM_H_
#define MIBITEM_H_


#include <QList>
#include <QVariant>


class MibItem
{
public:

	MibItem(const QList<QVariant> &data, MibItem *parent=0);
	~MibItem();

	MibItem* parent() const;
	MibItem* child(int index) const;
	void appendChild(MibItem *child);
	int childCount() const;
	int row();
	QVariant dataValue(int column) const;
	QList<QVariant> dataList() const;

private:
	QList<QVariant> data;
	MibItem *parentItem;
	QList<MibItem *> children;
};


#endif /* MIBITEM_H_ */
